﻿@using HYBY.WebFrameWork.Mvc
@using System.Web
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>文件上传</h2>
<div class="container">
    @Html.Partial("_FileUpload")
    <div class="row">
        <input id="myfileinput" type="file" />
        <input type="button" value="上传" class="btn btn-default" onclick="uploadImage();" />
    </div>
</div>
@section FootScript{
    <script type="text/javascript">

        var url = "@Html.Raw(Url.ImageUpload("201605100001", new String[] { "800*800", "800*600", "400*300" }))";
        function uploadImage(){
            fileUpload("myfileinput", url, function (data) {
                alert(data.result)
            }, function (data) {
                alert(data.result)
            })
        }
    </script>
}


